import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询水产小时系数列表
export function listSa(query) {
  return request({
    url: '/sl/sa/list',
    method: 'get',
    params: query
  })
}

// 查询水产小时系数详细
export function getSa(saId) {
  return request({
    url: '/sl/sa/' + parseStrEmpty(saId),
    method: 'get'
  })
}

// 新增水产小时系数
export function addSa(data) {
  return request({
    url: '/sl/sa',
    method: 'post',
    data: data
  })
}

// 修改水产小时系数
export function updateSa(data) {
  return request({
    url: '/sl/sa',
    method: 'put',
    data: data
  })
}

// 删除水产小时系数
export function delSa(saId) {
  return request({
    url: '/sl/sa/' + saId,
    method: 'delete'
  })
}
